package com.aaa.product.service.impl;

import com.aaa.pojo.Product;
import com.aaa.product.dao.ProductDao;
import com.aaa.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: qy163-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-05-12 16:10
 **/
@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;
    @Override
    public Product findById(Integer pid) {
        Product product = productDao.selectById(pid);
        return product;
    }
}
